package com.project.school_flate.controller.business;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.project.school_flate.dto.login.Login;
import com.project.school_flate.util.Result.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    /**
     * 查看部署流程
     * @param
     * @return
     * @throws Exception
     */
    @SaCheckLogin
    @Operation(summary = "test")
    @PostMapping("/test")
    public Result getProcesses(@RequestBody Login login) throws Exception {
        return Result.ok(login);
    }
}
